.class public Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;
.super Landroid/widget/RelativeLayout;
.source "FloatViewLayout.java"

# interfaces
.implements Lcom/estrongs/android/ui/floatingwindows/e$a;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$j;,
        Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;
    }
.end annotation


# instance fields
.field private A:Z

.field private B:Landroid/view/View;

.field private C:Landroid/widget/RelativeLayout;

.field private D:Landroid/widget/RelativeLayout;

.field private a:I

.field private b:I

.field private c:Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;

.field private d:J

.field private e:Landroid/widget/RelativeLayout;

.field private f:Landroid/view/View;

.field private g:Landroid/widget/TextView;

.field private h:I

.field private i:Z

.field private j:F

.field private k:F

.field private l:F

.field private m:F

.field private n:F

.field private o:F

.field private p:Landroid/view/View$OnClickListener;

.field private q:Landroid/view/WindowManager;

.field private r:Landroid/view/WindowManager$LayoutParams;

.field private s:Landroid/view/WindowManager$LayoutParams;

.field private t:J

.field private u:J

.field private v:Z

.field private w:Lcom/estrongs/android/ui/floatingwindows/e;

.field private x:Z

.field private y:J

.field private z:J


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 6

    .line 1
    invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    const/16 v0, 0x69

    .line 2
    iput v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a:I

    const-wide/16 v0, 0x0

    .line 3
    iput-wide v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->d:J

    const/4 v2, 0x1

    .line 4
    iput v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->h:I

    const/4 v3, 0x0

    .line 5
    iput-boolean v3, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->i:Z

    const-wide/16 v4, 0x3e8

    .line 6
    iput-wide v4, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->t:J

    .line 7
    iput-wide v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->u:J

    .line 8
    iput-boolean v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->v:Z

    .line 9
    iput-boolean v3, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->x:Z

    .line 10
    iput-wide v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->y:J

    .line 11
    iput-wide v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->z:J

    .line 12
    iput-boolean v3, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->A:Z

    .line 13
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a(Landroid/content/Context;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 5

    .line 14
    invoke-direct {p0, p1, p2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/16 p2, 0x69

    .line 15
    iput p2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a:I

    const-wide/16 v0, 0x0

    .line 16
    iput-wide v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->d:J

    const/4 p2, 0x1

    .line 17
    iput p2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->h:I

    const/4 v2, 0x0

    .line 18
    iput-boolean v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->i:Z

    const-wide/16 v3, 0x3e8

    .line 19
    iput-wide v3, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->t:J

    .line 20
    iput-wide v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->u:J

    .line 21
    iput-boolean p2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->v:Z

    .line 22
    iput-boolean v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->x:Z

    .line 23
    iput-wide v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->y:J

    .line 24
    iput-wide v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->z:J

    .line 25
    iput-boolean v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->A:Z

    .line 26
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a(Landroid/content/Context;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 4

    .line 27
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const/16 p2, 0x69

    .line 28
    iput p2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a:I

    const-wide/16 p2, 0x0

    .line 29
    iput-wide p2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->d:J

    const/4 v0, 0x1

    .line 30
    iput v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->h:I

    const/4 v1, 0x0

    .line 31
    iput-boolean v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->i:Z

    const-wide/16 v2, 0x3e8

    .line 32
    iput-wide v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->t:J

    .line 33
    iput-wide p2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->u:J

    .line 34
    iput-boolean v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->v:Z

    .line 35
    iput-boolean v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->x:Z

    .line 36
    iput-wide p2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->y:J

    .line 37
    iput-wide p2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->z:J

    .line 38
    iput-boolean v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->A:Z

    .line 39
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a(Landroid/content/Context;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;I)I
    .locals 0

    .line 4
    iput p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a:I

    return p1
.end method

.method static synthetic a(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;)Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;
    .locals 0

    .line 5
    iput-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->c:Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;

    return-object p1
.end method

.method private a(Landroid/content/Context;Landroid/view/View;)V
    .locals 7

    .line 38
    iget p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->h:I

    const/4 v0, 0x1

    const v1, 0x7f0906c5

    const/4 v2, 0x2

    if-eq p1, v0, :cond_1

    if-eq p1, v2, :cond_0

    .line 39
    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    goto :goto_0

    :cond_0
    const p1, 0x7f0906c6

    .line 40
    invoke-virtual {p2, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    goto :goto_0

    .line 41
    :cond_1
    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    :goto_0
    new-array v0, v2, [F

    .line 42
    fill-array-data v0, :array_0

    const-string v1, "alpha"

    invoke-static {p1, v1, v0}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    new-array v2, v2, [F

    .line 43
    fill-array-data v2, :array_1

    invoke-static {p1, v1, v2}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v2

    const/4 v3, 0x3

    new-array v3, v3, [F

    .line 44
    fill-array-data v3, :array_2

    invoke-static {p1, v1, v3}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object p1

    const-wide/16 v3, 0x3e8

    .line 45
    invoke-virtual {v0, v3, v4}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 46
    invoke-virtual {v2, v3, v4}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    const-wide/16 v5, 0x1194

    .line 47
    invoke-virtual {p1, v5, v6}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 48
    new-instance v1, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$c;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$c;-><init>(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;)V

    invoke-virtual {v2, v1}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 49
    new-instance v1, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$d;

    invoke-direct {v1, p0, p2}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$d;-><init>(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;Landroid/view/View;)V

    invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 50
    new-instance p2, Landroid/animation/AnimatorSet;

    invoke-direct {p2}, Landroid/animation/AnimatorSet;-><init>()V

    .line 51
    invoke-virtual {p2, v0}, Landroid/animation/AnimatorSet;->play(Landroid/animation/Animator;)Landroid/animation/AnimatorSet$Builder;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/animation/AnimatorSet$Builder;->before(Landroid/animation/Animator;)Landroid/animation/AnimatorSet$Builder;

    .line 52
    invoke-virtual {p2, v2}, Landroid/animation/AnimatorSet;->play(Landroid/animation/Animator;)Landroid/animation/AnimatorSet$Builder;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/animation/AnimatorSet$Builder;->after(Landroid/animation/Animator;)Landroid/animation/AnimatorSet$Builder;

    .line 53
    invoke-virtual {p2, v3, v4}, Landroid/animation/AnimatorSet;->setStartDelay(J)V

    .line 54
    invoke-virtual {p2}, Landroid/animation/AnimatorSet;->start()V

    return-void

    nop

    :array_0
    .array-data 4
        0x3f800000    # 1.0f
        0x0
    .end array-data

    :array_1
    .array-data 4
        0x3f800000    # 1.0f
        0x0
    .end array-data

    :array_2
    .array-data 4
        0x0
        0x3f666666    # 0.9f
        0x3f800000    # 1.0f
    .end array-data
.end method

.method private a(Landroid/view/View;Ljava/lang/String;)V
    .locals 3

    .line 55
    iget v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->h:I

    const/4 v1, 0x1

    const v2, 0x7f090cef

    if-eq v0, v1, :cond_1

    const/4 v1, 0x2

    if-eq v0, v1, :cond_0

    .line 56
    invoke-virtual {p1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    .line 57
    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_0
    const v0, 0x7f090cf0

    .line 58
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    .line 59
    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 60
    :cond_1
    invoke-virtual {p1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    .line 61
    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    return-void
.end method

.method private a(Landroid/view/WindowManager$LayoutParams;Landroid/view/View;Z)V
    .locals 3

    .line 91
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    if-eqz v0, :cond_2

    if-eqz p1, :cond_2

    if-nez p2, :cond_0

    goto :goto_1

    .line 92
    :cond_0
    new-instance p2, Landroid/util/DisplayMetrics;

    invoke-direct {p2}, Landroid/util/DisplayMetrics;-><init>()V

    .line 93
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    invoke-virtual {v0, p2}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 94
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/FexApplication;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0701f4

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v0

    const/high16 v1, 0x42c80000    # 100.0f

    .line 95
    invoke-virtual {p0, v1}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a(F)F

    move-result v1

    float-to-int v1, v1

    const/high16 v2, 0x42200000    # 40.0f

    .line 96
    invoke-virtual {p0, v2}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a(F)F

    move-result v2

    float-to-int v2, v2

    if-eqz p3, :cond_1

    .line 97
    iget p3, p2, Landroid/util/DisplayMetrics;->widthPixels:I

    sub-int/2addr p3, v0

    sub-int/2addr p3, v1

    iput p3, p1, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 98
    iget p2, p2, Landroid/util/DisplayMetrics;->heightPixels:I

    div-int/lit8 p2, p2, 0x2

    mul-int/lit8 v0, v0, 0x2

    sub-int/2addr p2, v0

    div-int/lit8 p3, v2, 0x3

    add-int/2addr p2, p3

    iput p2, p1, Landroid/view/WindowManager$LayoutParams;->y:I

    goto :goto_0

    .line 99
    :cond_1
    iget p3, p2, Landroid/util/DisplayMetrics;->widthPixels:I

    sub-int/2addr p3, v0

    sub-int/2addr p3, v1

    iput p3, p1, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 100
    iget p2, p2, Landroid/util/DisplayMetrics;->heightPixels:I

    div-int/lit8 p2, p2, 0x2

    div-int/lit8 p3, v2, 0x3

    add-int/2addr p2, p3

    iput p2, p1, Landroid/view/WindowManager$LayoutParams;->y:I

    .line 101
    :goto_0
    iput v1, p1, Landroid/view/WindowManager$LayoutParams;->width:I

    .line 102
    iput v2, p1, Landroid/view/WindowManager$LayoutParams;->height:I

    :cond_2
    :goto_1
    return-void
.end method

.method private a(Landroid/view/WindowManager$LayoutParams;Z)V
    .locals 7

    .line 62
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    if-eqz v0, :cond_8

    if-nez p1, :cond_0

    goto/16 :goto_1

    .line 63
    :cond_0
    new-instance v0, Landroid/util/DisplayMetrics;

    invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V

    .line 64
    iget-object v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    invoke-interface {v1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 65
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/android/pop/FexApplication;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0701f4

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    .line 66
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v2

    const/4 v3, 0x1

    const-string v4, "key_hide_float_view_orientation_port"

    invoke-virtual {v2, v4, v3}, Lcom/estrongs/android/pop/o;->a(Ljava/lang/String;Z)Z

    move-result v2

    .line 67
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v4

    const-string v5, ""

    const-string v6, "key_float_view_position"

    invoke-virtual {v4, v6, v5}, Lcom/estrongs/android/pop/o;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    if-eq v4, v5, :cond_6

    const-string v5, "_"

    .line 68
    invoke-virtual {v4, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v4

    .line 69
    iget v5, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    .line 70
    iget v0, v0, Landroid/util/DisplayMetrics;->heightPixels:I

    const/4 v6, 0x0

    if-eqz v2, :cond_3

    if-eqz p2, :cond_1

    .line 71
    aget-object p2, v4, v6

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    iput p2, p1, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 72
    aget-object p2, v4, v3

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    iput p2, p1, Landroid/view/WindowManager$LayoutParams;->y:I

    goto/16 :goto_0

    .line 73
    :cond_1
    aget-object p2, v4, v6

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    div-int/lit8 v2, v0, 0x2

    if-le p2, v2, :cond_2

    .line 74
    iput v5, p1, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 75
    aget-object p2, v4, v3

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    mul-int p2, p2, v0

    div-int/2addr p2, v5

    iput p2, p1, Landroid/view/WindowManager$LayoutParams;->y:I

    goto/16 :goto_0

    .line 76
    :cond_2
    aget-object p2, v4, v6

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    iput p2, p1, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 77
    aget-object p2, v4, v3

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    mul-int p2, p2, v0

    div-int/2addr p2, v5

    iput p2, p1, Landroid/view/WindowManager$LayoutParams;->y:I

    goto/16 :goto_0

    :cond_3
    if-eqz p2, :cond_5

    .line 78
    aget-object p2, v4, v6

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    div-int/lit8 v2, v0, 0x2

    if-le p2, v2, :cond_4

    .line 79
    iput v5, p1, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 80
    aget-object p2, v4, v3

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    mul-int p2, p2, v0

    div-int/2addr p2, v5

    iput p2, p1, Landroid/view/WindowManager$LayoutParams;->y:I

    goto :goto_0

    .line 81
    :cond_4
    aget-object p2, v4, v6

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    iput p2, p1, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 82
    aget-object p2, v4, v3

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    mul-int p2, p2, v0

    div-int/2addr p2, v5

    iput p2, p1, Landroid/view/WindowManager$LayoutParams;->y:I

    goto :goto_0

    .line 83
    :cond_5
    aget-object p2, v4, v6

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    iput p2, p1, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 84
    aget-object p2, v4, v3

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    iput p2, p1, Landroid/view/WindowManager$LayoutParams;->y:I

    goto :goto_0

    :cond_6
    if-eqz p2, :cond_7

    .line 85
    iget p2, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    sub-int/2addr p2, v1

    iput p2, p1, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 86
    iget p2, v0, Landroid/util/DisplayMetrics;->heightPixels:I

    div-int/lit8 p2, p2, 0x2

    mul-int/lit8 v0, v1, 0x2

    sub-int/2addr p2, v0

    iput p2, p1, Landroid/view/WindowManager$LayoutParams;->y:I

    goto :goto_0

    .line 87
    :cond_7
    iget p2, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    sub-int/2addr p2, v1

    iput p2, p1, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 88
    iget p2, v0, Landroid/util/DisplayMetrics;->heightPixels:I

    div-int/lit8 p2, p2, 0x2

    iput p2, p1, Landroid/view/WindowManager$LayoutParams;->y:I

    .line 89
    :goto_0
    iput v1, p1, Landroid/view/WindowManager$LayoutParams;->width:I

    .line 90
    iput v1, p1, Landroid/view/WindowManager$LayoutParams;->height:I

    :cond_8
    :goto_1
    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;)V
    .locals 0

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->k()V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;Landroid/view/View;Ljava/lang/String;)V
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a(Landroid/view/View;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;ZI)Z
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a(ZI)Z

    move-result p0

    return p0
.end method

.method private a(ZI)Z
    .locals 4

    .line 13
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->r:Landroid/view/WindowManager$LayoutParams;

    iget v1, v0, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 14
    iget-boolean v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->i:Z

    const/4 v3, 0x1

    if-nez v2, :cond_0

    return v3

    :cond_0
    const/4 v2, 0x0

    if-eqz p1, :cond_1

    if-ge v1, p2, :cond_2

    .line 15
    div-int/lit8 p1, p2, 0x2

    if-lt v1, p1, :cond_2

    add-int/lit8 v1, v1, 0xf

    .line 16
    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 17
    iget-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    invoke-interface {p1, p0, v0}, Landroid/view/WindowManager;->updateViewLayout(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    :cond_1
    if-lez v1, :cond_2

    .line 18
    div-int/lit8 p2, p2, 0x2

    if-gt v1, p2, :cond_2

    add-int/lit8 v1, v1, -0xf

    .line 19
    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 20
    iget-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    invoke-interface {p1, p0, v0}, Landroid/view/WindowManager;->updateViewLayout(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    :goto_0
    const/4 v3, 0x0

    :cond_2
    if-eqz v3, :cond_3

    .line 21
    iget-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->r:Landroid/view/WindowManager$LayoutParams;

    iget p2, p1, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 22
    iget p1, p1, Landroid/view/WindowManager$LayoutParams;->y:I

    .line 23
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p2, "_"

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string p2, "key_float_view_position"

    invoke-virtual {v0, p2, p1}, Lcom/estrongs/android/pop/o;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 24
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/pop/utils/t;->g(Landroid/content/Context;)Z

    move-result p1

    .line 25
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object p2

    const-string v0, "key_hide_float_view_orientation_port"

    invoke-virtual {p2, v0, p1}, Lcom/estrongs/android/pop/o;->b(Ljava/lang/String;Z)V

    :cond_3
    return v3
.end method

.method static synthetic b(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;I)I
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->b:I

    return p1
.end method

.method private b(Landroid/content/Context;)V
    .locals 7

    .line 6
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v0

    const/4 v1, 0x0

    const-string v2, "FLOAT_VIEW_POP_SHOWN"

    .line 7
    invoke-virtual {v0, v2, v1}, Lcom/estrongs/android/pop/o;->a(Ljava/lang/String;Z)Z

    move-result v3

    if-eqz v3, :cond_0

    return-void

    :cond_0
    const/4 v3, 0x1

    .line 8
    invoke-virtual {v0, v2, v3}, Lcom/estrongs/android/pop/o;->b(Ljava/lang/String;Z)V

    .line 9
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v2, 0x7f0c0184

    const/4 v4, 0x0

    invoke-virtual {v0, v2, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->B:Landroid/view/View;

    .line 10
    iget v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->h:I

    const v4, 0x7f0906c5

    const/16 v5, 0x8

    const v6, 0x7f0906c6

    if-eq v2, v3, :cond_2

    const/4 v3, 0x2

    if-eq v2, v3, :cond_1

    .line 11
    invoke-virtual {v0, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V

    .line 12
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->B:Landroid/view/View;

    invoke-virtual {v0, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 13
    :cond_1
    invoke-virtual {v0, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V

    .line 14
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->B:Landroid/view/View;

    invoke-virtual {v0, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 15
    :cond_2
    invoke-virtual {v0, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V

    .line 16
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->B:Landroid/view/View;

    invoke-virtual {v0, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 17
    :goto_0
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    const v1, 0x7f110621

    invoke-virtual {v0, v1}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 18
    iget-object v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->B:Landroid/view/View;

    invoke-direct {p0, v1, v0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a(Landroid/view/View;Ljava/lang/String;)V

    .line 19
    invoke-direct {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->h()Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->s:Landroid/view/WindowManager$LayoutParams;

    .line 20
    invoke-static {p1}, Lcom/estrongs/android/pop/utils/t;->g(Landroid/content/Context;)Z

    move-result v0

    .line 21
    iget-object v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->s:Landroid/view/WindowManager$LayoutParams;

    iget-object v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->B:Landroid/view/View;

    invoke-direct {p0, v1, v2, v0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a(Landroid/view/WindowManager$LayoutParams;Landroid/view/View;Z)V

    .line 22
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    iget-object v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->B:Landroid/view/View;

    iget-object v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->s:Landroid/view/WindowManager$LayoutParams;

    invoke-interface {v0, v1, v2}, Landroid/view/WindowManager;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 23
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    iget-object v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->B:Landroid/view/View;

    iget-object v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->s:Landroid/view/WindowManager$LayoutParams;

    invoke-interface {v0, v1, v2}, Landroid/view/WindowManager;->updateViewLayout(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 24
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->B:Landroid/view/View;

    invoke-direct {p0, v0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->setPopViewTextTouch(Landroid/view/View;)V

    .line 25
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->B:Landroid/view/View;

    invoke-direct {p0, p1, v0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a(Landroid/content/Context;Landroid/view/View;)V

    return-void
.end method

.method static synthetic b(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;)Z
    .locals 0

    .line 2
    iget-boolean p0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->A:Z

    return p0
.end method

.method static synthetic c(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->p()V

    return-void
.end method

.method private f(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;)V
    .locals 8

    .line 5
    new-instance v7, Lcom/estrongs/android/ui/floatingwindows/b;

    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->D:Landroid/widget/RelativeLayout;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getWidth()I

    move-result v0

    int-to-float v0, v0

    const/high16 v1, 0x40000000    # 2.0f

    div-float v3, v0, v1

    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->D:Landroid/widget/RelativeLayout;

    .line 6
    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getHeight()I

    move-result v0

    int-to-float v0, v0

    div-float v4, v0, v1

    const/4 v1, 0x0

    const/high16 v2, 0x42b40000    # 90.0f

    const/high16 v5, 0x42870000    # 67.5f

    const/4 v6, 0x1

    move-object v0, v7

    invoke-direct/range {v0 .. v6}, Lcom/estrongs/android/ui/floatingwindows/b;-><init>(FFFFFZ)V

    .line 7
    new-instance v0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$j;

    invoke-direct {v0, p0, p1}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$j;-><init>(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;)V

    invoke-virtual {v7, v0}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    const-wide/16 v0, 0x12c

    .line 8
    invoke-virtual {v7, v0, v1}, Landroid/view/animation/Animation;->setDuration(J)V

    const/4 p1, 0x1

    .line 9
    invoke-virtual {v7, p1}, Landroid/view/animation/Animation;->setFillAfter(Z)V

    .line 10
    new-instance p1, Landroid/view/animation/AccelerateInterpolator;

    invoke-direct {p1}, Landroid/view/animation/AccelerateInterpolator;-><init>()V

    invoke-virtual {v7, p1}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->D:Landroid/widget/RelativeLayout;

    invoke-virtual {p1, v7}, Landroid/widget/RelativeLayout;->startAnimation(Landroid/view/animation/Animation;)V

    return-void
.end method

.method private g()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->r:Landroid/view/WindowManager$LayoutParams;

    if-eqz v0, :cond_1

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/pop/utils/t;->e(Landroid/content/Context;)I

    move-result v0

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->r:Landroid/view/WindowManager$LayoutParams;

    iget v1, v1, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 4
    new-instance v2, Landroid/os/Handler;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v3

    invoke-direct {v2, v3}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    .line 5
    div-int/lit8 v3, v0, 0x2

    if-le v1, v3, :cond_0

    .line 6
    new-instance v1, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$a;

    invoke-direct {v1, p0, v0, v2}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$a;-><init>(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;ILandroid/os/Handler;)V

    invoke-virtual {v2, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_0

    .line 7
    :cond_0
    new-instance v1, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$b;

    invoke-direct {v1, p0, v0, v2}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$b;-><init>(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;ILandroid/os/Handler;)V

    invoke-virtual {v2, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :cond_1
    :goto_0
    return-void
.end method

.method private h()Landroid/view/WindowManager$LayoutParams;
    .locals 3

    .line 1
    new-instance v0, Landroid/view/WindowManager$LayoutParams;

    invoke-direct {v0}, Landroid/view/WindowManager$LayoutParams;-><init>()V

    .line 2
    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x1a

    if-lt v1, v2, :cond_0

    const/16 v1, 0x7f6

    goto :goto_0

    :cond_0
    const/16 v1, 0x7d2

    :goto_0
    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->type:I

    const/4 v1, 0x1

    .line 3
    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->format:I

    const/16 v1, 0x28

    .line 4
    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

    const/16 v1, 0x33

    .line 5
    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->gravity:I

    return-object v0
.end method

.method private i()V
    .locals 1

    const/4 v0, 0x1

    .line 1
    iput-boolean v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->A:Z

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    .line 3
    invoke-virtual {p0, v0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->b(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;)V

    :cond_0
    return-void
.end method

.method private j()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->c:Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 2
    invoke-interface {v0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;->onAnimationEnd()V

    .line 3
    iput-object v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->c:Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;

    goto :goto_0

    .line 4
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->d()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 5
    invoke-virtual {p0, v1}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->e(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;)V

    goto :goto_0

    .line 6
    :cond_1
    iget-boolean v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->A:Z

    if-eqz v0, :cond_2

    iget v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a:I

    const/16 v2, 0x68

    if-ne v0, v2, :cond_2

    const/16 v0, 0x69

    .line 7
    iput v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a:I

    .line 8
    invoke-virtual {p0, v1}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->e(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;)V

    :cond_2
    :goto_0
    const/4 v0, 0x0

    .line 9
    iput-boolean v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->A:Z

    .line 10
    invoke-direct {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->g()V

    return-void
.end method

.method private k()V
    .locals 2

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->B:Landroid/view/View;

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    iget-object v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->B:Landroid/view/View;

    invoke-interface {v0, v1}, Landroid/view/WindowManager;->removeView(Landroid/view/View;)V

    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->B:Landroid/view/View;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 4
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    :goto_0
    return-void
.end method

.method private l()V
    .locals 3

    .line 1
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v0

    const-string v1, "newfile_float"

    const-string v2, "fail"

    .line 2
    invoke-virtual {v0, v1, v2}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 3
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :goto_0
    return-void
.end method

.method private m()V
    .locals 7

    .line 1
    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    const-string v1, "eventValue"

    const-string v2, "button_show"

    .line 2
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 3
    iget v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->h:I
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    const/4 v2, 0x1

    const-string v3, "newfile_float_show_style1"

    const-string v4, "01"

    const-string v5, "show"

    const-string v6, "style"

    if-eq v1, v2, :cond_1

    const/4 v2, 0x2

    if-eq v1, v2, :cond_0

    .line 4
    :try_start_1
    invoke-virtual {v0, v6, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 5
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v1

    .line 6
    invoke-virtual {v1, v3, v5}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :cond_0
    const-string v1, "02"

    .line 7
    invoke-virtual {v0, v6, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 8
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v1

    const-string v2, "newfile_float_show_style2"

    .line 9
    invoke-virtual {v1, v2, v5}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 10
    :cond_1
    invoke-virtual {v0, v6, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 11
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v1

    .line 12
    invoke-virtual {v1, v3, v5}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 13
    :goto_0
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v1

    const-string v2, "newfile_float_button_show"

    invoke-virtual {v1, v2, v0}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    .line 14
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    :goto_1
    return-void
.end method

.method private n()V
    .locals 3

    .line 1
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v0

    const-string v1, "newfile_float"

    const-string v2, "no_permission"

    .line 2
    invoke-virtual {v0, v1, v2}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 3
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :goto_0
    return-void
.end method

.method private o()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->w:Lcom/estrongs/android/ui/floatingwindows/e;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Lcom/estrongs/android/ui/floatingwindows/e;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/floatingwindows/e;-><init>(Lcom/estrongs/android/ui/floatingwindows/e$a;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->w:Lcom/estrongs/android/ui/floatingwindows/e;

    .line 3
    :cond_0
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    const-string v1, "sensor"

    invoke-virtual {v0, v1}, Landroid/app/Application;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/hardware/SensorManager;

    const/4 v1, 0x1

    .line 4
    invoke-virtual {v0, v1}, Landroid/hardware/SensorManager;->getDefaultSensor(I)Landroid/hardware/Sensor;

    move-result-object v1

    .line 5
    iget-object v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->w:Lcom/estrongs/android/ui/floatingwindows/e;

    const/4 v3, 0x2

    invoke-virtual {v0, v2, v1, v3}, Landroid/hardware/SensorManager;->registerListener(Landroid/hardware/SensorEventListener;Landroid/hardware/Sensor;I)Z

    return-void
.end method

.method private p()V
    .locals 9

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->C:Landroid/widget/RelativeLayout;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getVisibility()I

    move-result v0

    const/4 v1, 0x0

    const/16 v2, 0x8

    if-ne v0, v2, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->C:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->e:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    goto :goto_0

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->C:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->e:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    .line 6
    :goto_0
    new-instance v0, Lcom/estrongs/android/ui/floatingwindows/b;

    const/high16 v3, 0x43870000    # 270.0f

    const/high16 v4, 0x43b40000    # 360.0f

    iget-object v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->D:Landroid/widget/RelativeLayout;

    invoke-virtual {v1}, Landroid/widget/RelativeLayout;->getWidth()I

    move-result v1

    int-to-float v1, v1

    const/high16 v2, 0x40000000    # 2.0f

    div-float v5, v1, v2

    iget-object v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->D:Landroid/widget/RelativeLayout;

    .line 7
    invoke-virtual {v1}, Landroid/widget/RelativeLayout;->getHeight()I

    move-result v1

    int-to-float v1, v1

    div-float v6, v1, v2

    const/high16 v7, 0x42870000    # 67.5f

    const/4 v8, 0x0

    move-object v2, v0

    invoke-direct/range {v2 .. v8}, Lcom/estrongs/android/ui/floatingwindows/b;-><init>(FFFFFZ)V

    const-wide/16 v1, 0x12c

    .line 8
    invoke-virtual {v0, v1, v2}, Landroid/view/animation/Animation;->setDuration(J)V

    const/4 v1, 0x1

    .line 9
    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setFillAfter(Z)V

    .line 10
    new-instance v1, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v1}, Landroid/view/animation/DecelerateInterpolator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 11
    iget-object v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->D:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v0}, Landroid/widget/RelativeLayout;->startAnimation(Landroid/view/animation/Animation;)V

    return-void
.end method

.method private q()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->w:Lcom/estrongs/android/ui/floatingwindows/e;

    if-eqz v0, :cond_0

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    const-string v1, "sensor"

    invoke-virtual {v0, v1}, Landroid/app/Application;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/hardware/SensorManager;

    const/4 v1, 0x1

    .line 3
    invoke-virtual {v0, v1}, Landroid/hardware/SensorManager;->getDefaultSensor(I)Landroid/hardware/Sensor;

    move-result-object v1

    .line 4
    iget-object v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->w:Lcom/estrongs/android/ui/floatingwindows/e;

    invoke-virtual {v0, v2, v1}, Landroid/hardware/SensorManager;->unregisterListener(Landroid/hardware/SensorEventListener;Landroid/hardware/Sensor;)V

    :cond_0
    return-void
.end method

.method private r()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->r:Landroid/view/WindowManager$LayoutParams;

    iget v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->l:F

    iget v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->j:F

    sub-float/2addr v1, v2

    float-to-int v1, v1

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 2
    iget v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->m:F

    iget v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->k:F

    sub-float/2addr v1, v2

    float-to-int v1, v1

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->y:I

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    invoke-interface {v1, p0, v0}, Landroid/view/WindowManager;->updateViewLayout(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method private setPopViewTextTouch(Landroid/view/View;)V
    .locals 3

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->h:I

    const/4 v1, 0x1

    const v2, 0x7f090cef

    if-eq v0, v1, :cond_1

    const/4 v1, 0x2

    if-eq v0, v1, :cond_0

    .line 2
    invoke-virtual {p1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    goto :goto_0

    :cond_0
    const v0, 0x7f090cf0

    .line 3
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    goto :goto_0

    .line 4
    :cond_1
    invoke-virtual {p1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    .line 5
    :goto_0
    new-instance v0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$e;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$e;-><init>(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;)V

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    return-void
.end method


# virtual methods
.method public a(F)F
    .locals 1

    .line 119
    invoke-virtual {p0}, Landroid/widget/RelativeLayout;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    iget v0, v0, Landroid/util/DisplayMetrics;->density:F

    mul-float p1, p1, v0

    const/high16 v0, 0x3f000000    # 0.5f

    add-float/2addr p1, v0

    return p1
.end method

.method public a()V
    .locals 2

    .line 26
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->r:Landroid/view/WindowManager$LayoutParams;

    if-eqz v0, :cond_0

    .line 27
    iget-boolean v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->i:Z

    if-nez v0, :cond_0

    .line 28
    invoke-direct {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->o()V

    .line 29
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->r:Landroid/view/WindowManager$LayoutParams;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/pop/utils/t;->g(Landroid/content/Context;)Z

    move-result v1

    invoke-direct {p0, v0, v1}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a(Landroid/view/WindowManager$LayoutParams;Z)V

    .line 30
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    iget-object v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->r:Landroid/view/WindowManager$LayoutParams;

    invoke-interface {v0, p0, v1}, Landroid/view/WindowManager;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    const/4 v0, 0x1

    .line 31
    iput-boolean v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->i:Z

    .line 32
    invoke-virtual {p0}, Landroid/widget/RelativeLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->b(Landroid/content/Context;)V

    .line 33
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/Calendar;->getTimeInMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->d:J

    .line 34
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v0

    const-string v1, "act4"

    invoke-virtual {v0, v1}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;)V

    .line 35
    invoke-direct {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->m()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 36
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 37
    invoke-direct {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->l()V

    :cond_0
    :goto_0
    return-void
.end method

.method public a(I)V
    .locals 7

    .line 103
    :try_start_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 104
    iget-wide v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->u:J

    sub-long v2, v0, v2

    iget-wide v4, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->t:J

    cmp-long v6, v2, v4

    if-gez v6, :cond_0

    return-void

    .line 105
    :cond_0
    iget-object v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    if-nez v2, :cond_1

    return-void

    .line 106
    :cond_1
    iput-wide v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->u:J

    const/16 v0, 0xe1

    if-le p1, v0, :cond_2

    const/16 v0, 0x13b

    if-lt p1, v0, :cond_3

    :cond_2
    const/16 v0, 0x2d

    if-le p1, v0, :cond_4

    const/16 v0, 0x87

    if-ge p1, v0, :cond_4

    :cond_3
    const/4 p1, 0x0

    goto :goto_0

    :cond_4
    const/4 p1, 0x1

    :goto_0
    if-eqz p1, :cond_5

    .line 107
    iget-boolean v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->v:Z

    if-eqz v0, :cond_5

    return-void

    .line 108
    :cond_5
    iput-boolean p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->v:Z

    .line 109
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->r:Landroid/view/WindowManager$LayoutParams;

    invoke-direct {p0, v0, p1}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a(Landroid/view/WindowManager$LayoutParams;Z)V

    .line 110
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->s:Landroid/view/WindowManager$LayoutParams;

    iget-object v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->B:Landroid/view/View;

    invoke-direct {p0, v0, v1, p1}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a(Landroid/view/WindowManager$LayoutParams;Landroid/view/View;Z)V

    .line 111
    invoke-virtual {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->c()Z

    move-result p1

    if-eqz p1, :cond_6

    .line 112
    iget-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->r:Landroid/view/WindowManager$LayoutParams;

    invoke-interface {p1, p0, v0}, Landroid/view/WindowManager;->updateViewLayout(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 113
    :cond_6
    iget-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->B:Landroid/view/View;

    if-eqz p1, :cond_7

    .line 114
    iget-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->B:Landroid/view/View;

    iget-object v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->s:Landroid/view/WindowManager$LayoutParams;

    invoke-interface {p1, v0, v1}, Landroid/view/WindowManager;->updateViewLayout(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p1

    .line 115
    invoke-virtual {p1}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, "text"

    invoke-static {v0, p1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    :cond_7
    :goto_1
    return-void
.end method

.method public a(Landroid/content/Context;)V
    .locals 2

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->r:Landroid/view/WindowManager$LayoutParams;

    if-eqz v0, :cond_0

    goto :goto_0

    .line 7
    :cond_0
    :try_start_0
    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "window"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    iput-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    .line 8
    invoke-direct {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->h()Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->r:Landroid/view/WindowManager$LayoutParams;

    .line 9
    invoke-static {p1}, Lcom/estrongs/android/pop/utils/t;->g(Landroid/content/Context;)Z

    move-result p1

    iput-boolean p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->v:Z

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->r:Landroid/view/WindowManager$LayoutParams;

    invoke-direct {p0, v0, p1}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a(Landroid/view/WindowManager$LayoutParams;Z)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 11
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    .line 12
    invoke-direct {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->l()V

    :cond_1
    :goto_0
    return-void
.end method

.method public a(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;)V
    .locals 1

    .line 116
    invoke-virtual {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->d()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    const/16 v0, 0x66

    .line 117
    iput v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a:I

    .line 118
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->f(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;)V

    return-void
.end method

.method public b(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;)V
    .locals 7

    .line 26
    invoke-virtual {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->d()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    const/16 v0, 0x68

    .line 27
    iput v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a:I

    const v0, 0x7f0909bd

    .line 28
    invoke-virtual {p0, v0}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x2

    new-array v2, v1, [F

    .line 29
    fill-array-data v2, :array_0

    const-string v3, "scaleX"

    invoke-static {v0, v3, v2}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v2

    new-array v3, v1, [F

    .line 30
    fill-array-data v3, :array_1

    const-string v4, "scaleY"

    invoke-static {v0, v4, v3}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v3

    .line 31
    iget v4, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->h:I

    const/4 v5, 0x1

    const-string v6, "alpha"

    if-eq v4, v5, :cond_2

    if-eq v4, v1, :cond_1

    new-array v1, v1, [F

    .line 32
    fill-array-data v1, :array_2

    invoke-static {v0, v6, v1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    goto :goto_0

    :cond_1
    new-array v1, v1, [F

    .line 33
    fill-array-data v1, :array_3

    invoke-static {v0, v6, v1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    goto :goto_0

    :cond_2
    new-array v1, v1, [F

    .line 34
    fill-array-data v1, :array_4

    invoke-static {v0, v6, v1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    :goto_0
    const-wide/16 v4, 0x3e8

    .line 35
    invoke-virtual {v2, v4, v5}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 36
    invoke-virtual {v3, v4, v5}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 37
    invoke-virtual {v0, v4, v5}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 38
    new-instance v1, Landroid/animation/AnimatorSet;

    invoke-direct {v1}, Landroid/animation/AnimatorSet;-><init>()V

    .line 39
    invoke-virtual {v1, v2}, Landroid/animation/AnimatorSet;->play(Landroid/animation/Animator;)Landroid/animation/AnimatorSet$Builder;

    move-result-object v2

    invoke-virtual {v2, v3}, Landroid/animation/AnimatorSet$Builder;->with(Landroid/animation/Animator;)Landroid/animation/AnimatorSet$Builder;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/animation/AnimatorSet$Builder;->with(Landroid/animation/Animator;)Landroid/animation/AnimatorSet$Builder;

    .line 40
    new-instance v2, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$f;

    invoke-direct {v2, p0, p1}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$f;-><init>(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;)V

    invoke-virtual {v0, v2}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 41
    invoke-virtual {v1}, Landroid/animation/AnimatorSet;->start()V

    return-void

    :array_0
    .array-data 4
        0x3f4ccccd    # 0.8f
        0x3f800000    # 1.0f
    .end array-data

    :array_1
    .array-data 4
        0x3f4ccccd    # 0.8f
        0x3f800000    # 1.0f
    .end array-data

    :array_2
    .array-data 4
        0x3f800000    # 1.0f
        0x3f19999a    # 0.6f
    .end array-data

    :array_3
    .array-data 4
        0x3f800000    # 1.0f
        0x3f000000    # 0.5f
    .end array-data

    :array_4
    .array-data 4
        0x3f800000    # 1.0f
        0x3f19999a    # 0.6f
    .end array-data
.end method

.method public b()Z
    .locals 3

    .line 3
    invoke-virtual {p0}, Landroid/widget/RelativeLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    const/4 v1, 0x1

    if-nez v0, :cond_0

    return v1

    :cond_0
    const/16 v2, 0x18

    .line 4
    invoke-static {v0, v2}, Lcom/permission/runtime/f;->a(Landroid/content/Context;I)I

    move-result v0

    if-ne v0, v1, :cond_1

    .line 5
    invoke-direct {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->n()V

    const/4 v0, 0x0

    return v0

    :cond_1
    return v1
.end method

.method public c(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;)V
    .locals 5

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->d()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    const/16 v0, 0x6a

    .line 4
    iput v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a:I

    const v0, 0x7f0909bd

    .line 5
    invoke-virtual {p0, v0}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 6
    iget v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->h:I

    const/4 v2, 0x1

    const-string v3, "alpha"

    const/4 v4, 0x2

    if-eq v1, v2, :cond_2

    if-eq v1, v4, :cond_1

    new-array v1, v4, [F

    .line 7
    fill-array-data v1, :array_0

    invoke-static {v0, v3, v1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    goto :goto_0

    :cond_1
    new-array v1, v4, [F

    .line 8
    fill-array-data v1, :array_1

    invoke-static {v0, v3, v1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    goto :goto_0

    :cond_2
    new-array v1, v4, [F

    .line 9
    fill-array-data v1, :array_2

    invoke-static {v0, v3, v1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    :goto_0
    const-wide/16 v1, 0x3e8

    .line 10
    invoke-virtual {v0, v1, v2}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 11
    new-instance v1, Landroid/animation/AnimatorSet;

    invoke-direct {v1}, Landroid/animation/AnimatorSet;-><init>()V

    .line 12
    invoke-virtual {v1, v0}, Landroid/animation/AnimatorSet;->play(Landroid/animation/Animator;)Landroid/animation/AnimatorSet$Builder;

    .line 13
    new-instance v2, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$g;

    invoke-direct {v2, p0, p1}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$g;-><init>(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;)V

    invoke-virtual {v0, v2}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 14
    invoke-virtual {v1}, Landroid/animation/AnimatorSet;->start()V

    return-void

    :array_0
    .array-data 4
        0x3f800000    # 1.0f
        0x3f19999a    # 0.6f
    .end array-data

    :array_1
    .array-data 4
        0x3f800000    # 1.0f
        0x3f000000    # 0.5f
    .end array-data

    :array_2
    .array-data 4
        0x3f800000    # 1.0f
        0x3f19999a    # 0.6f
    .end array-data
.end method

.method public c()Z
    .locals 1

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->i:Z

    return v0
.end method

.method public d(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;)V
    .locals 5

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->d()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    const/16 v0, 0x6a

    .line 2
    iput v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a:I

    const v0, 0x7f0909bd

    .line 3
    invoke-virtual {p0, v0}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 4
    iget v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->h:I

    const/4 v2, 0x1

    const-string v3, "alpha"

    const/4 v4, 0x2

    if-eq v1, v2, :cond_2

    if-eq v1, v4, :cond_1

    new-array v1, v4, [F

    .line 5
    fill-array-data v1, :array_0

    invoke-static {v0, v3, v1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    goto :goto_0

    :cond_1
    new-array v1, v4, [F

    .line 6
    fill-array-data v1, :array_1

    invoke-static {v0, v3, v1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    goto :goto_0

    :cond_2
    new-array v1, v4, [F

    .line 7
    fill-array-data v1, :array_2

    invoke-static {v0, v3, v1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    :goto_0
    const-wide/16 v1, 0x3e8

    .line 8
    invoke-virtual {v0, v1, v2}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 9
    new-instance v1, Landroid/animation/AnimatorSet;

    invoke-direct {v1}, Landroid/animation/AnimatorSet;-><init>()V

    .line 10
    invoke-virtual {v1, v0}, Landroid/animation/AnimatorSet;->play(Landroid/animation/Animator;)Landroid/animation/AnimatorSet$Builder;

    .line 11
    new-instance v2, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$h;

    invoke-direct {v2, p0, p1}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$h;-><init>(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;)V

    invoke-virtual {v0, v2}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 12
    invoke-virtual {v1}, Landroid/animation/AnimatorSet;->start()V

    return-void

    :array_0
    .array-data 4
        0x3f800000    # 1.0f
        0x3f19999a    # 0.6f
    .end array-data

    :array_1
    .array-data 4
        0x3f800000    # 1.0f
        0x3f000000    # 0.5f
    .end array-data

    :array_2
    .array-data 4
        0x3f800000    # 1.0f
        0x3f19999a    # 0.6f
    .end array-data
.end method

.method public d()Z
    .locals 2

    .line 13
    iget v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a:I

    const/16 v1, 0x69

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    return v0

    :cond_0
    const/4 v0, 0x0

    return v0
.end method

.method public e()V
    .locals 1

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->r:Landroid/view/WindowManager$LayoutParams;

    if-eqz v0, :cond_0

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->i:Z

    if-eqz v0, :cond_0

    .line 3
    invoke-direct {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q()V

    const/16 v0, 0x69

    .line 4
    iput v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a:I

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->q:Landroid/view/WindowManager;

    invoke-interface {v0, p0}, Landroid/view/WindowManager;->removeViewImmediate(Landroid/view/View;)V

    const/4 v0, 0x0

    .line 6
    iput-boolean v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->i:Z

    .line 7
    invoke-direct {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->k()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 8
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    :goto_0
    return-void
.end method

.method public e(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;)V
    .locals 7

    .line 9
    invoke-virtual {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->d()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    const/16 v0, 0x67

    .line 10
    iput v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->a:I

    const v0, 0x7f0909bd

    .line 11
    invoke-virtual {p0, v0}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x2

    new-array v2, v1, [F

    .line 12
    fill-array-data v2, :array_0

    const-string v3, "scaleX"

    invoke-static {v0, v3, v2}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v2

    new-array v3, v1, [F

    .line 13
    fill-array-data v3, :array_1

    const-string v4, "scaleY"

    invoke-static {v0, v4, v3}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v3

    .line 14
    iget v4, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->h:I

    const/4 v5, 0x1

    const-string v6, "alpha"

    if-eq v4, v5, :cond_2

    if-eq v4, v1, :cond_1

    new-array v1, v1, [F

    .line 15
    fill-array-data v1, :array_2

    invoke-static {v0, v6, v1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    goto :goto_0

    :cond_1
    new-array v1, v1, [F

    .line 16
    fill-array-data v1, :array_3

    invoke-static {v0, v6, v1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    goto :goto_0

    :cond_2
    new-array v1, v1, [F

    .line 17
    fill-array-data v1, :array_4

    invoke-static {v0, v6, v1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    :goto_0
    const-wide/16 v4, 0x3e8

    .line 18
    invoke-virtual {v2, v4, v5}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 19
    invoke-virtual {v3, v4, v5}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 20
    invoke-virtual {v0, v4, v5}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 21
    new-instance v1, Landroid/animation/AnimatorSet;

    invoke-direct {v1}, Landroid/animation/AnimatorSet;-><init>()V

    .line 22
    invoke-virtual {v1, v2}, Landroid/animation/AnimatorSet;->play(Landroid/animation/Animator;)Landroid/animation/AnimatorSet$Builder;

    move-result-object v2

    invoke-virtual {v2, v3}, Landroid/animation/AnimatorSet$Builder;->with(Landroid/animation/Animator;)Landroid/animation/AnimatorSet$Builder;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/animation/AnimatorSet$Builder;->with(Landroid/animation/Animator;)Landroid/animation/AnimatorSet$Builder;

    .line 23
    new-instance v2, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$i;

    invoke-direct {v2, p0, p1}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$i;-><init>(Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout$k;)V

    invoke-virtual {v0, v2}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 24
    invoke-virtual {v1}, Landroid/animation/AnimatorSet;->start()V

    return-void

    :array_0
    .array-data 4
        0x3f800000    # 1.0f
        0x3f4ccccd    # 0.8f
    .end array-data

    :array_1
    .array-data 4
        0x3f800000    # 1.0f
        0x3f4ccccd    # 0.8f
    .end array-data

    :array_2
    .array-data 4
        0x3f800000    # 1.0f
        0x3f19999a    # 0.6f
    .end array-data

    :array_3
    .array-data 4
        0x3f800000    # 1.0f
        0x3f000000    # 0.5f
    .end array-data

    :array_4
    .array-data 4
        0x3f800000    # 1.0f
        0x3f19999a    # 0.6f
    .end array-data
.end method

.method public f()V
    .locals 2

    const v0, 0x7f0901f4

    .line 1
    invoke-virtual {p0, v0}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    const/4 v1, 0x4

    .line 2
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    const v0, 0x7f0901f5

    .line 3
    invoke-virtual {p0, v0}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/ui/floatingwindows/FloatRoundImageView;

    const/4 v1, 0x0

    .line 4
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    return-void
.end method

.method public getCenterImageView()Landroid/widget/ImageView;
    .locals 1

    const v0, 0x7f0901f5

    .line 1
    invoke-virtual {p0, v0}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    return-object v0
.end method

.method public getFloatViewSHowTime()J
    .locals 2

    .line 1
    iget-wide v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->d:J

    return-wide v0
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 6

    .line 1
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    .line 2
    invoke-virtual {p0, v0}, Landroid/widget/RelativeLayout;->getWindowVisibleDisplayFrame(Landroid/graphics/Rect;)V

    .line 3
    iget v0, v0, Landroid/graphics/Rect;->top:I

    .line 4
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v1

    iput v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->l:F

    .line 5
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result v1

    int-to-float v0, v0

    sub-float/2addr v1, v0

    iput v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->m:F

    .line 6
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_4

    if-eq v0, v1, :cond_1

    const/4 p1, 0x2

    if-eq v0, p1, :cond_0

    goto :goto_0

    .line 7
    :cond_0
    iput-boolean v1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->x:Z

    .line 8
    invoke-direct {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->r()V

    goto :goto_0

    .line 9
    :cond_1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    iput-wide v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->z:J

    .line 10
    invoke-direct {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->r()V

    const/4 p1, 0x0

    .line 11
    iput p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->k:F

    iput p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->j:F

    .line 12
    iget p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->l:F

    iget v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->n:F

    sub-float/2addr p1, v0

    const/high16 v0, 0x40a00000    # 5.0f

    cmpg-float p1, p1, v0

    if-gez p1, :cond_3

    iget p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->m:F

    iget v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->o:F

    sub-float/2addr p1, v2

    cmpg-float p1, p1, v0

    if-gez p1, :cond_3

    iget-wide v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->z:J

    iget-wide v4, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->y:J

    sub-long/2addr v2, v4

    const-wide/16 v4, 0xc8

    cmp-long p1, v2, v4

    if-ltz p1, :cond_2

    iget-boolean p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->x:Z

    if-nez p1, :cond_3

    .line 13
    :cond_2
    iget-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->p:Landroid/view/View$OnClickListener;

    if-eqz p1, :cond_3

    .line 14
    invoke-interface {p1, p0}, Landroid/view/View$OnClickListener;->onClick(Landroid/view/View;)V

    :cond_3
    const/4 p1, 0x0

    .line 15
    iput-boolean p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->x:Z

    .line 16
    invoke-direct {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->j()V

    goto :goto_0

    .line 17
    :cond_4
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    iput-wide v2, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->y:J

    .line 18
    invoke-direct {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->i()V

    .line 19
    invoke-direct {p0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->k()V

    .line 20
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    iput v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->j:F

    .line 21
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result p1

    iput p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->k:F

    .line 22
    iget p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->l:F

    iput p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->n:F

    .line 23
    iget p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->m:F

    iput p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->o:F

    :goto_0
    return v1
.end method

.method public setCenterImage(I)V
    .locals 2

    const v0, 0x7f0901f5

    .line 12
    invoke-virtual {p0, v0}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/ui/floatingwindows/FloatRoundImageView;

    const/4 v1, 0x4

    .line 13
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    const v0, 0x7f0901f4

    .line 14
    invoke-virtual {p0, v0}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    const/4 v1, 0x0

    .line 15
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 16
    invoke-virtual {p0}, Landroid/widget/RelativeLayout;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    return-void
.end method

.method public setCenterImage(Landroid/graphics/Bitmap;)V
    .locals 4

    const v0, 0x7f08058d

    const-string v1, "text"

    if-eqz p1, :cond_0

    .line 1
    :try_start_0
    invoke-virtual {p1}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v2

    if-nez v2, :cond_0

    const v2, 0x7f0901f4

    .line 2
    invoke-virtual {p0, v2}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    const/4 v3, 0x4

    .line 3
    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    const v2, 0x7f0901f5

    .line 4
    invoke-virtual {p0, v2}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/estrongs/android/ui/floatingwindows/FloatRoundImageView;

    const/4 v3, 0x0

    .line 5
    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 6
    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 7
    new-instance v3, Landroid/graphics/drawable/BitmapDrawable;

    invoke-direct {v3, p1}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/graphics/Bitmap;)V

    invoke-virtual {v2, v3}, Lcom/estrongs/android/ui/floatingwindows/FloatRoundImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_1

    :catch_0
    move-exception p1

    goto :goto_0

    .line 8
    :cond_0
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "\u56fe\u7247\u89e3\u6790\u5f02\u5e38 bitmap:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {v1, p1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 9
    invoke-virtual {p0, v0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->setCenterImage(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    .line 10
    :goto_0
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "\u56fe\u7247\u89e3\u6790\u5f02\u5e38:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {v1, p1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 11
    invoke-virtual {p0, v0}, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->setCenterImage(I)V

    :goto_1
    return-void
.end method

.method public setCenterText(Ljava/lang/String;)V
    .locals 1

    const v0, 0x7f0901f6

    .line 1
    invoke-virtual {p0, v0}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 2
    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public setFloatViewBackgroundStyle(I)V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->e:Landroid/widget/RelativeLayout;

    if-nez v0, :cond_0

    const v0, 0x7f0909bb

    .line 2
    invoke-virtual {p0, v0}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->e:Landroid/widget/RelativeLayout;

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->f:Landroid/view/View;

    if-nez v0, :cond_1

    const v0, 0x7f090484

    .line 4
    invoke-virtual {p0, v0}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->f:Landroid/view/View;

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->g:Landroid/widget/TextView;

    if-nez v0, :cond_2

    const v0, 0x7f0901f6

    .line 6
    invoke-virtual {p0, v0}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->g:Landroid/widget/TextView;

    :cond_2
    const/4 v0, 0x1

    if-eq p1, v0, :cond_4

    const/4 v0, 0x2

    if-eq p1, v0, :cond_3

    goto :goto_0

    .line 7
    :cond_3
    iget-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->e:Landroid/widget/RelativeLayout;

    const v0, 0x7f0800e5

    invoke-virtual {p1, v0}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    .line 8
    iget-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->f:Landroid/view/View;

    invoke-virtual {p1, v0}, Landroid/view/View;->setBackgroundResource(I)V

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->g:Landroid/widget/TextView;

    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    const v1, 0x7f060323

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_0

    .line 10
    :cond_4
    iget-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->e:Landroid/widget/RelativeLayout;

    const v0, 0x7f0800e4

    invoke-virtual {p1, v0}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->f:Landroid/view/View;

    invoke-virtual {p1, v0}, Landroid/view/View;->setBackgroundResource(I)V

    .line 12
    iget-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->g:Landroid/widget/TextView;

    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    const v1, 0x7f060213

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    .line 13
    :goto_0
    iget-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->C:Landroid/widget/RelativeLayout;

    if-nez p1, :cond_5

    const p1, 0x7f0909bf

    .line 14
    invoke-virtual {p0, p1}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/RelativeLayout;

    iput-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->C:Landroid/widget/RelativeLayout;

    .line 15
    :cond_5
    iget-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->D:Landroid/widget/RelativeLayout;

    if-nez p1, :cond_6

    const p1, 0x7f0909bd

    .line 16
    invoke-virtual {p0, p1}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/RelativeLayout;

    iput-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->D:Landroid/widget/RelativeLayout;

    :cond_6
    return-void
.end method

.method public setFloatViewStyle(I)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->h:I

    return-void
.end method

.method public setOnClickListener(Landroid/view/View$OnClickListener;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/floatingwindows/FloatViewLayout;->p:Landroid/view/View$OnClickListener;

    return-void
.end method
